#add_subdirectory (Consensus)
#add_subdirectory (Contracts)
add_subdirectory (cmd)
add_subdirectory (Blockchain)
add_subdirectory (Data)
add_subdirectory (Directory)
add_subdirectory (depends)
add_subdirectory (Crypto)
add_subdirectory (Incentives)
add_subdirectory (libTestUtils)
add_subdirectory (Lookup)
#add_subdirectory (Mediator)
add_subdirectory (Message)
add_subdirectory (Network)
#add_subdirectory (PyRunner)
add_subdirectory (Persistence)
add_subdirectory (POW)
add_subdirectory (RumorSpreading)
add_subdirectory (Server)
#add_subdirectory (EvmLookupServer)
add_subdirectory (EvmFiltersAPI)
add_subdirectory (EthRpcMethods)
add_subdirectory (Utils)
add_subdirectory (Zilliqa)
add_subdirectory (native)
#add_subdirectory (RemoteStorageDB) Works only if you have a local mongo server running

file(COPY ${CMAKE_SOURCE_DIR}/constants_local.xml DESTINATION ${CMAKE_BINARY_DIR})
# presently, it's a workaround to silence the error thrown by tests_zilliqa_local.py
file(COPY ${CMAKE_SOURCE_DIR}/constants.xml DESTINATION ${CMAKE_BINARY_DIR})
file(COPY Node DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/tests/Zilliqa/test_zilliqa_local.py DESTINATION ${CMAKE_SOURCE_DIR}/build/tests/zilliqa)
file(COPY ${CMAKE_SOURCE_DIR}/tests/Zilliqa/test_zilliqa_lookup.py DESTINATION ${CMAKE_SOURCE_DIR}/build/tests/zilliqa)
file(COPY ${CMAKE_SOURCE_DIR}/tests/Zilliqa/test_zilliqa_seedpub.py DESTINATION ${CMAKE_SOURCE_DIR}/build/tests/zilliqa)
file(COPY ${CMAKE_SOURCE_DIR}/tests/Zilliqa/test_zilliqa_late.py DESTINATION ${CMAKE_SOURCE_DIR}/build/tests/zilliqa)